CC=gcc
TARGET=STM32server
OBJ=server.o cJSON.o

CCLAGS=-c -Wall
INCLUDE = cJSON.h

$(TARGET):$(OBJ)
	$(CC) $^ -o $@
%.o:%.c
	$(CC)  -I $(INCLUDE) $(CCLAGS) $<  -o $@

.PHONY:clean
clean:
	rm *.o  -f $(TARGET)
